package com.iwayin.core.dataobject;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.iwayin.core.utils.PageInfo;

/**
 * 问题
 * 
 * @author xiaobo.feng<xiaobo.feng@foxmail.com>
 * 
 *         Mar 5, 2012
 */
public class AskDO extends PageInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1333601636236482055L;

	private Long rownum;

	private Long id;
	private Long userId;// 提问人
	private String question;// 内容
	private String picPath;// 关联图片
	private String originalPicPath;// 关联图片
	private Long askType;// 问题类型
	private Long commentCount;
	private Long answerCount;
	private Long voteCount;
	private Long likeCount;
	private Long preventOther;
	private Long status;// 问题状态
	private Date createTime;
	private String historyInfo;

	// 统计扩展字段--查询使用
	private Long askCountToday;// 当天ask数量

	// 统计扩展字段--查询使用
	private Long askCount;

	// 查询follow用户ask
	private List<Long> followIdList;

	// 用户头像,ask列表展示使用
	private String createTimeInfo;
	private String avatarPath;
	private String userName;
	private String tempPicPath;
	private Long lastAskId;
	
	private boolean isLike;
	private boolean isAnswer;

	private CommentDO lastestComment;
	private List<CommentDO> commentList;
	private List<AnswerDO> answerList;
	private AnswerDO answer;

	private Long loginId;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public String getPicPath() {
		return picPath;
	}

	public void setPicPath(String picPath) {
		this.picPath = picPath;
	}

	public Long getAskType() {
		return askType;
	}

	public void setAskType(Long askType) {
		this.askType = askType;
	}

	public Long getStatus() {
		return status;
	}

	public void setStatus(Long status) {
		this.status = status;
	}

	public Long getAskCount() {
		return askCount;
	}

	public void setAskCount(Long askCount) {
		this.askCount = askCount;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Long getCommentCount() {
		return commentCount;
	}

	public void setCommentCount(Long commentCount) {
		this.commentCount = commentCount;
	}

	public Long getAnswerCount() {
		return answerCount;
	}

	public void setAnswerCount(Long answerCount) {
		this.answerCount = answerCount;
	}

	public List<Long> getFollowIdList() {
		return followIdList;
	}

	public void setFollowIdList(List<Long> followIdList) {
		this.followIdList = followIdList;
	}

	public String getAvatarPath() {
		return avatarPath;
	}

	public void setAvatarPath(String avatarPath) {
		this.avatarPath = avatarPath;
	}

	public String getCreateTimeInfo() {
		return createTimeInfo;
	}

	public void setCreateTimeInfo(String createTimeInfo) {
		this.createTimeInfo = createTimeInfo;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public void setAskCountToday(Long askCountToday) {
		this.askCountToday = askCountToday;
	}

	public Long getAskCountToday() {
		return askCountToday;
	}

	public String getHistoryInfo() {
		return historyInfo;
	}

	public void setHistoryInfo(String historyInfo) {
		this.historyInfo = historyInfo;
	}

	public String getOriginalPicPath() {
		return originalPicPath;
	}

	public void setOriginalPicPath(String originalPicPath) {
		this.originalPicPath = originalPicPath;
	}

	public Long getVoteCount() {
		return voteCount;
	}

	public void setVoteCount(Long voteCount) {
		this.voteCount = voteCount;
	}

	public Long getPreventOther() {
		return preventOther;
	}

	public void setPreventOther(Long preventOther) {
		this.preventOther = preventOther;
	}

	public Long getLikeCount() {
		return likeCount;
	}

	public void setLikeCount(Long likeCount) {
		this.likeCount = likeCount;
	}

	public List<AnswerDO> getAnswerList() {
		return answerList;
	}

	public void setAnswerList(List<AnswerDO> answerList) {
		this.answerList = answerList;
	}

	public String getTempPicPath() {
		return tempPicPath;
	}

	public void setTempPicPath(String tempPicPath) {
		this.tempPicPath = tempPicPath;
	}

	public Long getLastAskId() {
		return lastAskId;
	}

	public void setLastAskId(Long lastAskId) {
		this.lastAskId = lastAskId;
	}

	public Long getRownum() {
		return rownum;
	}

	public void setRownum(Long rownum) {
		this.rownum = rownum;
	}

	public Long getLoginId() {
		return loginId;
	}

	public void setLoginId(Long loginId) {
		this.loginId = loginId;
	}

	public List<CommentDO> getCommentList() {
		return commentList;
	}

	public void setCommentList(List<CommentDO> commentList) {
		this.commentList = commentList;
	}

	public CommentDO getLastestComment() {
		return lastestComment;
	}

	public void setLastestComment(CommentDO lastestComment) {
		this.lastestComment = lastestComment;
	}

	public boolean getIsLike() {
		return isLike;
	}

	public void setIsLike(boolean isLike) {
		this.isLike = isLike;
	}

	public boolean getIsAnswer() {
		return isAnswer;
	}

	public void setIsAnswer(boolean isAnswer) {
		this.isAnswer = isAnswer;
	}

	public AnswerDO getAnswer() {
		return answer;
	}

	public void setAnswer(AnswerDO answer) {
		this.answer = answer;
	}
	
}
